Image processing apparatus, image processing method, and recording medium

ABSTRACT

An image processing method comprises an extracting process of extracting a characteristic amount of an input image, a generating process of generating a high frequency component of the input image, a gradation converting process of converting a gradation of the input image on the basis of the characteristic amount, and an adding process of adding the high frequency component to the input image whose gradation has been converted.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an image processing apparatus and itsmethod for converting a gradation with keeping a high frequencycomponent of an image such as an X-ray image, and a computer-readablestorage medium used therefor.

2. Related Background Art

For example, an X-ray chest image is composed of an image of a lungfield through which an X-ray is easy to pass and an image of amediastinum portion through which an X-ray is very hard to pass, andtherefore pixel values exist in an extremely wide range. Accordingly ithas been considered to be hard to obtain an X-ray chest image on whichboth of the lung field and the mediastinum portion can be observedsimultaneously.

Therefore, various methods described below have been conventionallysuggested as methods of resolving this problem.

First, there is a method disclosed in SPIE Vol. 626. Medicine XIV/PACSIV(1986). This method is expressed by the following formula (1):S _(D) =A[S _(ORG) −S _(US) +B(S _(US))]+C  (1)where S_(D) is a pixel value after processing, S_(ORG) is an originalpixel value (input pixel value), S_(US) is a pixel value of a lowfrequency image of an original image (input image), and constants A, B,and C (for example, A=3, B=0.7).

In this method, it is possible to change weights of a high frequencycomponent (first term) and a low frequency component (second term). Forexample, if A=3 and B=0.7, the high frequency component is highlightedand the entire dynamic range is compressed advantageously. This methodis appreciated by five radiotherapists in that the processed image isuseful for a diagnosis in comparison with a non-processed image.

In addition, there is disclosed a method in Japanese Pat. No. 2509503which is expressed by the following formula (2):S _(D) =S _(ORG) +F[G(Px, Py)]  (2)where S_(D) is a pixel value after processing, S_(ORG) is an originalpixel value (input pixel value), and Py is an average profile in a Ydirection profile and Px is an average profile in a X direction profileof an original image (input image).

Characteristics of the function f(x) is described below. First, f(0)becomes “0” in “x>Dth” and f(x) monotonously decreases with “E” as anintercept and “E/Dth” as a slope in “0≦x≦Dth” as expressed by thefollowing formula (3):F[x]=E−(E/th)X  (3)Py=(ΣPyi)/n  (4)Px=(ΣPxi)/n  (5)where (i=1−n), Pyi, and Pxi are profiles. They are expressed by thefollowing formula (6), for example:G=(Px, Py)=max(px, py)  (6)In this method, a density range of pixel values Dth and lower of a lowfrequency image is compressed.

In addition, as a similar method to the above patent gazette, there is amethod referred to as a self-compensatory digital filter in“Self-compensatory Digital Filter,” National Cancer Center, Anan et alin Japan Radiation Technical Society Journal Vol. 45, Issue 8, Aug.1989, pp. 1,030. This method is expressed by the following formulas (7)and (8):S _(D) =S _(ORG) +f(S _(US))  (7)S _(US) ΣS _(ORG) /M ²  (8)where S_(D) is a pixel value after compensation (after processing),S_(ORG) is an original pixel value (input pixel value), S_(US) is anaverage pixel value of a moving average with a mask size of M×M pixelsof an original image (input image), and a monotonously decreasingfunction f(X) shown in FIG. 35.

Next, characteristics of the function f(S_(US)) is described below.First, regarding the characteristics shown in FIG. 35, f(S_(US)) becomes“0” if “S_(US)>BASE” and f(S_(US)) monotonously decreases with“threshold value BASE” as an intercept and SLOPE as a slope if“0≦S_(US)≦BASE.” Therefore when executing the above formula (7) with theoriginal pixel value S_(ORG) as a density equivalent amount, an effectto an image is obtained such as an increase of a density in a range of alower average density of the image.

This method is different from the method expressed by the formula (2) ina low frequency image preparing method; a low frequency image isprepared with two-dimensional data in this method while it is preparedwith one-dimensional data in the formula (2). In this method, however, adensity range of pixel values Dth and lower of the low frequency imageis compressed in the same manner.

Furthermore, there is disclosed a method in Japanese Pat. No. 2663189which is expressed by the following formulas (9) and (10):S _(D) =S _(ORG) +f 1(S _(US))  (9)S _(US) =ΣS _(ORG) /M ²  (10)where f1(X) is a monotonously increasing function.

Characteristics of the function f1(x) is described below. First, f1(x)becomes “0” in “x<Dth” and f1(x) monotonously decreases with “E” as anintercept and “E/Dth” as a slope in “Dth≦x” as expressed by thefollowing formula (11):f 1 [x]E−(E/th)X  (11)

Still further, there is disclosed a vivifying method of highlighting ahigh frequency component of an image having fixed or greater densityvalues in Japanese Pat. No. 1530832. In this method, an extremely lowfrequency component is highlighted and a high frequency component havinga high occupancy rate of noises is relatively reduced in order to obtainan image easy to see and to improve a diagnostic performance bypreventing a false image or an increase of noises.

There is a method expressed by the following formulas (12) and (13):S _(D) =S _(ORG) +B(S _(ORG) −S _(US))  (12)S _(US) =ΣS _(ORG) /M ²  (13)where the constant B is a variable monotonously increasing according toan increase of the S_(OR) or S_(US) value. When executing the aboveformula (12), a high frequency component of an image can be highlightedadvantageously.

The above method in SPIE Vol. 626. Medicine XIV/PACSIV (1986), however,does not have a concept of compressing a dynamic range of a fixeddensity range, and therefore a dynamic range of the entire image isequally compressed. Accordingly only a fixed density range cannot becompressed, by which if this method is used for a lung front image, forexample, there is a problem that not only the mediastinum portion but adensity range of a lung portion useful for a diagnosis is compressed andtherefore the diagnostic function is degraded in comparison with amethod of compressing only the mediastinum portion.

The above “self-compensatory digital filter” method has a problem thatan unnatural distortion may be generated in a high frequency componentunless a form of the above function f(S_(US)) is adapted to decrease toBASE at a fixed ratio (it must be linear). Therefore, it has a problemthat a gradation cannot be compressed non-linearly and freely withkeeping an amplitude of a high frequency component at an amplitude of ahigh frequency component of the original image (input image).

In addition, generally an image whose dynamic range has been compressedis converted in its gradation again in a CRT display or a film output.The above “self-compensatory digital filter” method or the like does nothave a concept of adjusting an amplitude of a high frequency componentof the image after the gradation is converted, and therefore the imagewhose dynamic range has been compressed is further non-linearlyconverted in its gradation in a film output and an image display.Accordingly, the conversion depends upon a slope of a gradationconversion curve and the amplitude of the high frequency componentfluctuates. Therefore, it has problems that the amplitude after thegradation conversion is distorted non-linearly and that the amplitude ofa high frequency component becomes low in a range where the gradationconversion curve has a low slope by which an instructive informationdisappears even if the dynamic range is compressed with keeping theamplitude of the high frequency component. Furthermore, it has also aproblem that an overshoot or an undershoot may occur in an edge portion.

Furthermore the above conventional vivifying method of highlighting ahigh frequency component does not have a concept of compressing thedynamic range while the strength of a high frequency component additioncan be freely adjusted, and therefore it has a problem that an imagehaving a wide range of a density distribution cannot be displayed on asingle film sheet.

The present invention is provided to solve these problems and it is anobject of the present invention to freely adjust a range of a densitydistribution of an image and an amplitude of a high frequency component.

SUMMARY OF THE INVENTION

It is an object of the present invention to reproduce a noted areafavorably.

According to one aspect, the present invention which achieves thisobject related to an image processing method including an extractingprocess of extracting a characteristic amount of an input image, agenerating process of generating a high frequency component of the inputimage, a gradation converting process of converting a gradation of theinput image on the basis of the characteristic amount, and an addingprocess of adding the high frequency component to the input image whosegradation has been converted.

It is another object of the present invention to convert a dynamic rangeaccording to a medical input image so as to output an image which iseffective in a favorable diagnosis.

According to another aspect, the present invention which achieves thisobject relates to an image processing method including an extractingprocess of extracting a characteristic amount of a medical input imageand an output process of outputting the medical image for which a firstor a second dynamic range conversion has been performed, having thefirst dynamic range converting process of converting a dynamic rangeusing a first algorithm on the basis of the characteristic amount andthe second dynamic range converting process of converting a dynamicrange using a second algorithm on the basis of the characteristicamount.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an image processing device according to afirst embodiment;

FIG. 2 is a characteristic diagram showing a gradation conversionfunction F1( ) according to the first and eight embodiments;

FIG. 3 is a characteristic diagram showing a profile of a smoothed imagebased on an input image and a morphological filter according to thefirst embodiment;

FIG. 4 is a characteristic diagram showing a profile of a smoothed imagebased on a gradation converted image and a morphological filteraccording to the first and eighth embodiments;

FIG. 5 is a characteristic diagram showing a profile of an input imageand a processed image according to the first and eighth embodiments;

FIG. 6 is a characteristic diagram showing a gradation conversionfunction F1( ) according to a second embodiment;

FIG. 7 is a block diagram of an image processing device according to thesecond embodiment;

FIG. 8 is a characteristic diagram showing a gradation conversionfunction F1( ) according to a third embodiment;

FIG. 9 is a characteristic diagram showing a profile of an input image,a smoothed image of the input image, and a processed image according tothe third embodiment;

FIG. 10 is a block diagram of an image processing device according tothe third embodiment;

FIG. 11 is a block diagram of an image processing device according tothe eighth embodiment;

FIG. 12 is a block diagram of an image processing device according to aninth embodiment;

FIG. 13 is a flowchart of a processing according to the ninthembodiment;

FIG. 14 is a characteristic diagram showing a gradation conversionfunction F1( ) according to the ninth embodiment;

FIG. 15 is a characteristic diagram showing a gradation conversionfunction F1( ) according to the ninth embodiment;

FIG. 16 is a block diagram of a constitution of an image processingdevice according to a tenth embodiment;

FIG. 17 is a flowchart of a processing procedure according to the tenthembodiment;

FIGS. 18A and 18B are configurational diagrams of an image from which anirradiation area and a passing through area are deleted;

FIG. 19 is a characteristic diagram of assistance in explaining theoperation of the invention according to the tenth embodiment;

FIG. 20 is a diagram of a constitution of an image processing deviceaccording to an 11th embodiment;

FIG. 21 is a flowchart of a processing procedure of a processingaccording to an 11th embodiment;

FIG. 22 is a diagram illustrating an area in which a characteristicamount is extracted;

FIG. 23 is a diagram illustrating a gradation conversion curve of afirst gradation converting circuit;

FIG. 24 is a diagram illustrating a gradation conversion curve of asecond gradation converting circuit;

FIG. 25 is a block diagram of the image processing device according tothe 12th embodiment;

FIG. 26 is a flowchart of a processing according to the 12th embodiment;

FIG. 27 is a flowchart of a processing of a DRC circuit;

FIG. 28 is a characteristic diagram of a density value conversion curveof the DRC circuit;

FIG. 29 is a configurational diagram illustrating an image displayed bya control circuit;

FIG. 30 is a flowchart of a processing of an analysis circuit (1);

FIG. 31 is a characteristic diagram of a histogram generated by theanalysis circuit (1);

FIG. 32 is a characteristic diagram showing a gradation conversion curveand a visible density value;

FIG. 33 is a flowchart of a processing of an analysis circuit (2);

FIG. 34 is a characteristic diagram of a profile generated by theanalysis circuit (2); and

FIG. 35 is a characteristic diagram showing a monotonously decreasingfunction used for a conventional dynamic range compression.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Embodiments of the present invention will be described below withreference to accompanying drawings.

[First Embodiment]

A first embodiment is described below, first.

Referring to FIG. 2, there is shown a gradation conversion function F1() used in the first embodiment.

In this diagram, it is assumed that f1(x, y) is a density value of atwo-dimensional input original image, f0(x, y) is a density value of anoutput image after a two-dimensional gradation conversion (a convertedimage), and characters x, y indicate two-dimensional coordinates. Inaddition, an abscissa axis is assumed to indicate a density value f1(x,y) of the input image and an ordinate axis is to indicate a densityvalue f0(x, y) of the output image (the converted image). In thisgradation conversion curve, a slope (SLOPE) of a 2,500 or lower inputdensity value is 0.2 and a slope of an input density value more than2,500 is 1.

In FIG. 3, a solid line indicates a profile f1(X) of an input image anda dotted line indicates a profile fus(X) of a smoothed (low frequency)image fus(x, y).

In FIG. 4, a solid line indicates a profile f0(X) of an image obtainedby converting a gradation of the input image based on the gradationconversion curve shown in FIG. 2 and a dotted line indicates a profilefuso(X) of the smoothed (low frequency) image of the gradation convertedimage, where X is a constant.

Referring to FIG. 5, there is shown a result of an image processingmethod according to this embodiment, in which a solid line indicates aprofile f1(X) of an input image and a dotted line indicates a profilefd(X) of a processed image which has been processed according to thisembodiment.

Next, the operation is described.

First, an input image f1(x, y) is converted in its gradation with agradation conversion function F1( ) shown in FIG. 2 as shown in thefollowing formula (14) to obtain an output image f0(x, y):f 0(x, y)=F 1(f 1(x, y))  (14)

A pixel value fd(x, y) of the processed image is obtained on the basisof the following formula (15):fd(x, y)=fuso(x, y)+F(x, y)×(f 1(x, y)−fus(x, y))  (15)where F(x, y) is a function representing a processing effect dependingupon coordinates assuming F(x, y)=1 in this embodiment.

In this formula, fuso(x, y) is a smoothed (low frequency) image of anoutput image (a converted image) f0(x, y) and fus(x, y) is a smoothed(low frequency) image of an input image f1(x, y), which are obtained byformulas (16) to (20) described later, for example. Both of an averagedensity and an erosion, dilation, opening, or closing morphologicalfilter can be used for smoothing.

In the gradation conversion curve F1( ) (FIG. 2) used in thisembodiment, an amplitude of a high frequency component having a 2,500 orlower density value of the output image f0(x, y) is compressed to 20%,while a high frequency component preserves an amplitude of the inputimage if the density value is more than 2,500 (indicated by a solid linein FIG. 4).

The above fus(x, y) is assumed to be calculated by formulas (16) to(20), supposing that f1(x, y) is a two-dimensional input original image:f 2(x, y)=min{f 1(x+x 1, y+y 1)−D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (16)f 3(x, y)=max{f 2(x+x 1, y+y 1)+D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (17)f 4(x, y)=max{f 3(x+x 1, y+y 1)+D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (18)fus(x, y)=min{f 4(x+x 1, y+y 1)−D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (19)where D(x, y) is a disc filter and r1 is an arbitrary constant selectedaccording to an input image.D(x, y)=0, x×x+y×y≦r 1 ×r 1=−∞, etc.  (20)

A profile fus(X) (indicated by a dotted line in FIG. 3) of the fus(x, y)obtained here preserves an edge structure, and it does not cause anyovershoots nor undershoots which are disadvantages of the conventionaldynamic range compression.

In the same manner, fuso(x, y) is assumed to be calculated by formulas(21) to (24), supposing that f0(x, y) is an image after a gradationconversion:f 5(x, y)=min{f 0(x+x 1, y+y 1)−D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (21)f 6(x, y)=max{f 5(x+x 1, y+y 1)+D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (22)f 7(x, y)=max{f 6(x+x 1, y+y 1)+D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (23)fuso(x, y)=min{f 8(x+x 1, y+y 1)−D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (24)

A profile fuso(X) (indicated by a dotted line in FIG. 4) of the fuso(x,y) obtained here preserves an edge structure, and an intersection pointposition with f0(X) matches an intersection point position of fus(X) andf1(X).

A dotted line in FIG. 5 indicates a profile fd(X) of an obtainedprocessed image fd(x, y). The density distribution range of 2,500 orlower density values is compressed to 20% of the input image and a highfrequency component preserves an amplitude of the input image.

Referring to FIG. 1, there is shown a block diagram of a constitution ofan image processing device according to this embodiment, which realizesthe above formula (15).

In FIG. 1, an input image fl is converted in its gradation on the basisof the function in FIG. 2 by a gradation converting unit 101 and aconverted image F0 is obtained. This converted image F0 is smoothed by asmoothing unit 102 so as to obtain a smoothed image fuso and theobtained image is sent to an addition unit 103.

On the other hand, the above input image f1 is smoothed by anothersmoothing unit 104 and a smoothed image fus is obtained. Next, thesmoothed image fus is subtracted from the input image f1 by asubtraction unit 105, by which a high frequency component image isobtained. This high frequency component image is subjected to a constantmultiplication by a multiplication unit 106 and to an addition to theabove smoothed image fuso by the addition unit 103, by which a processedimage fd is obtained.

As described above, according to the first embodiment, it becomespossible to compress or expand a density distribution range of anarbitrary gradation area of the input image and to adjust freely theamplitude of a high frequency component after the gradation conversion.

[Second Embodiment]

A second embodiment is described below.

Referring to FIG. 6, there is shown a gradation conversion function F1() used for an image processing method according to the secondembodiment. In this diagram, it is assumed that f1(x, y) is a densityvalue of a two-dimensional input original image, fus(x, y) is a smoothed(low frequency) image of the input image, and fus0(x, y) is an outputimage after a gradation conversion (a converted image).

Next, the operation is described.

First, a smoothed image fus(x, y) of an input image f1(x, y) isgenerated by using the formulas (16) to (20), for example and agradation conversion is performed as shown in the following formula (25)with a gradation conversion function F1( ) shown in FIG. 6 to obtain anoutput image fus0(x, y):fus 0(x, y)=F 1(fus(x, y))  (25)

A pixel value fd(x, y) of the processed image is obtained on the basisof the following formula (26):

 fd(x, y)=fus 0(x, y)+F(x, y)×(f 1(x, y)−fus(x, y))  (26)

where F(x, y) is a function representing a processing effect dependingupon coordinates.

Referring to FIG. 7, there is shown a constitution of an imageprocessing device according to this embodiment, which realizes the aboveformula (26).

In FIG. 7, an input image f1 is smoothed by a smoothing unit 201 toobtain a smoothed image fus, the smoothed image fus is sent to asubtraction unit 204 and converted in its gradation on the basis of thefunction in FIG. 6 by a gradation converting unit 202 to obtain aconverted image fus0, and the converted image is sent to an additionunit 203.

On the other hand, the above smoothed image fus is subtracted from theinput image f1 by the subtraction unit 204 to obtain a high frequencycomponent image. This high frequency component image is subjected to aconstant multiplication by a multiplication unit 205 and to an additionto the above output image fus0 by the addition unit 203, by which aprocessed image fd is obtained.

As described above, according to the second embodiment, it becomespossible to omit a time for generating a smoothed image after convertinga gradation and to reduce a calculation time in comparison with thefirst embodiment. In addition, it also possible to compress or expand adensity distribution range of an arbitrary gradation area of the inputimage and to adjust freely the amplitude of the high frequency componentafter the gradation conversion.

[Third Embodiment]

A third embodiment is described below.

Referring to FIG. 8, there is shown a gradation conversion function F1() used for an image processing method according to the third embodiment.In this diagram, it is assumed that f1(x, y) is a density value of atwo-dimensional input original image, f0(x, y) is a density value of anoutput image after a two-dimensional gradation conversion, andcharacters x, y indicate two-dimensional coordinates. In addition, anabscissa axis indicates a density value f1(x, y) of the input image andan ordinate axis indicates a density value f0(x, y) of the output image.

In FIG. 9, a solid line indicates a profile f1(X) of an input image, adotted line indicates a profile fus(X) of a smoothed (low frequency)image fus(x, y), and a long and short dash line indicates a profilefd(X) of the processed image.

Next, the operation is described.

First, an input image f1(x, y) is converted in its gradation with agradation conversion function F1( ) shown in FIG. 8 as shown in thefollowing formula (27) to obtain an output image (a converted image)f0(x, y):f 0(x, y)=F 1(f 1(x, y))  (27)

A pixel value fd(x, y) of the processed image is obtained on the basisof the following formulas (28) and (29):c(x, y)=∂F 1(f 1(x, y))/∂f 1(x, y)  (28)fd(x, y)=f 0(x, y)+(1−c(x, y))×(f 1(x, y)−fus(x, y))  (29)where c(x, y) is a gradation conversion rate defined by the formula(28).

In this formula, fus(x, y) is a smoothed (low frequency) image of aninput image f1(x, y), which is expressed by a formula (30), for example.$\begin{matrix}{{{fus}\left( {x,y} \right)} = \frac{\int_{- d}^{d}{\int_{- d}^{d}{{{f0}\left( {{x + {x1}},{y + {y1}}} \right)}{\mathbb{d}{x1}}{\mathbb{d}{y1}}}}}{\int_{- d}^{d}{\int_{- d}^{d}{{\mathbb{d}{x1}}{\mathbb{d}{y1}}}}}} & (30)\end{matrix}$

Any method can be used for the smoothing described above; for example,an erosion, dilation, opening, or closing morphological filter can beused, for example.

Referring to FIG. 10, there is shown a constitution of an imageprocessing device according to this embodiment, which realizes the aboveformula (29).

In FIG. 10, an input image f1 is converted in its gradation on the basisof the gradation conversion curve in FIG. 8 by a gradation convertingunit 301 to obtain a converted image F0 and the converted image F0 issent to an addition unit 302. On the other hand, the above input imagef1 is smoothed by a smoothing unit 303 and a smoothed image fus isobtained. The smoothed image fus is subtracted from the input image f1by a subtraction unit 304, by which a high frequency component image isobtained. This high frequency component image is added to the aboveconverted image F0 by the addition unit 302, by which a processed imagefd is obtained.

As described above, according to the third embodiment, it becomespossible to compress or expand a density distribution range of anarbitrary gradation area of the input image and to adjust the amplitudeof the high frequency component after the gradation conversion so as tobe identical to the amplitude of the high frequency component of theinput image. In addition, it is also possible to reduce a calculationtime since a smoothing processing is required only once. Furthermore,the smoothing method with an average density has an advantage ofreducing a calculation time in morphological filter processing.

[Fourth Embodiment]

A fourth embodiment is described below.

This embodiment is expressed by an arithmetic expression (31) or (32)with a pixel value fd(x, y) of a processed image, a pixel value fuso(x,y) of a smoothed image of a first image (an output image after agradation conversion) f0(x, y), a pixel value f1(x, y) of a second image(an input image), a pixel value fus(x, y) of a smoothed (low frequency)image of the second image, a function F( ) for controlling processingeffects, and coordinates x and y on the image.fd(x, y)=fuso(x, y)+F(x, y)×(f 1(x, y)−fus(x, y))  (31)fd(x, y)=f 0(x, y)+F(f 1 (x, y))×(f 1(x, y)−fus(x, y))  (32)

As described above, according to the fourth embodiment, the function F() for controlling processing effects depends upon the density valuef1(x, y) of the second image, and therefore an amplitude of the highfrequency component can be changed according to the density value of thesecond image.

[Fifth Embodiment]

A fifth embodiment is described below.

This embodiment is expressed by an arithmetic expression (33) or (34)with a pixel value fd(x, y) of a processed image, a pixel value fuso(x,y) of a smoothed image of a first image f0(x, y), a pixel value f1(x, y)of a second image, a pixel value fus(x, y) of a smoothed (low frequency)image of the second image, a function F( ) for controlling processingeffects, and coordinates x and y on the image.

 fd(x, y)=fuso(x, y)+F(f 0(x, y)×(f 1(x, y)−fus(x, y))  (33)fd(x, y)=f 0(x, y)+F(f 0(x, y)×(f 1(x, y)−fus(x, y))  (34)

As described above, according to the fifth embodiment, the function F( )for controlling processing effects depends upon the density value f0(x,y) of the first image, and therefore an amplitude of the high frequencycomponent of a converted image can be changed according to the densityvalue of the first image.

[Sixth Embodiment]

A sixth embodiment is described below.

This embodiment is expressed by an arithmetic expression (35) or (36)with a pixel value fd(x, y) of a processed image, a pixel value fuso(x,y) of a smoothed image of a first image f0(x, y), a pixel value f1(x, y)of a second image, a pixel value fus(x, y) of a smoothed (low frequency)image of the second image, a function F( ) for controlling processingeffects, and coordinates x and y on the image.fd(x, y)=fuso(x, y)+F(x, y)×(f 1(x, y)−fus(x, y))  (35)fd(x, y)=f 0(x, y)+F(fus(x, y)×(f 1(x, y)−fus(x, y))  (36)

As described above, according to the sixth embodiment, the function F( )for controlling processing effects depends upon the density value fus(x,y) of the smoothed (low frequency) image of the second image, andtherefore an amplitude of the high frequency component of a convertedimage can be changed according to the density value of the smoothed (lowfrequency) image of the second image. Furthermore, there is no influenceof the amplitude of the high frequency component of the second imagesince the amplitude of the high frequency component is adjusteddependently on the density of the smoothed image.

[Seventh Embodiment]

A seventh embodiment is described below.

This embodiment is expressed by an arithmetic expression (37) or (38)with a pixel value fd(x, y) of a processed image, a pixel value fuso(x,y) of a smoothed image of a first image f0(x, y), a pixel value f1(x, y)of a second image, a pixel value fus(x, y) of a smoothed (low frequency)image of the second image, a function F( ) for controlling processingeffects, and coordinates x and y on the image.fd(x, y)=fuso(x, y)+F(fuso(x, y)×(f 1(x, y)−fus(x, y))  (37)fd(x, y)=f 0(x, y)+F(fuso(x, y)×(f 1(x, y)−fus(x, y))  (38)

As described above, according to the seventh embodiment, the function F() for controlling processing effects depends upon the density valuefuso(x, y) of the smoothed (low frequency) image of the first image, andtherefore an amplitude of the high frequency component of a convertedimage can be changed according to the density value of the smoothed (lowfrequency) image of the first image. Furthermore, there is no influenceof the amplitude of the high frequency component of the first imagesince the amplitude of the high frequency component is adjusteddependently on the density of the smoothed image.

[Eighth Embodiment]

Next, the eighth embodiment is described below, with reference to FIGS.2, 4, and 5 used for the first embodiment.

In FIG. 2, in the same manner as for the first embodiment, f1(x, y) is adensity value of a two-dimensional input original image, f0(x, y) is adensity value of an output image after a two-dimensional gradationconversion, and characters x, y indicate two-dimensional coordinates. Inaddition, an abscissa axis indicates a density value f1(x, y) of theinput image and an ordinate axis indicates a density value f0(x, y) ofthe output image. In this gradation conversion curve, a slope of a 2,500or lower input density value is 0.2 and a slope of an input densityvalue more than 2,500 is 1.

In FIG. 4, a solid line indicates a profile f0(X9) of an output imageafter the gradation conversion and a dotted line indicates a profilefuso(X) of a smoothed (low frequency) image.

In FIG. 5, a solid line indicates a profile f1(X) of an input image anda dotted line indicates a profile fd(X) of the processed image as aresult of an image processing method according to this embodiment.

Next, the operation is described.

First, an input image f1(x, y) is converted in its gradation with agradation conversion function F1( ) shown in FIG. 2 as shown in theabove formula (14) to obtain an output image f0(x, y).

Then, a pixel value fd(x, y) of the processed image is obtained on thebasis of the following formula (39), supposing that c(x, y) is afunction representing a slope of the gradation conversion curve asexpressed by the above formula (28):fd(x, y)=fuso(x, y)+a×(1/c(x, y))×(f 0(x, y)−fuso(x, y))  (39)where a is a constant and fuso(x, y) is a pixel value of the smoothed(low frequency) image of the output image f0(x, y), expressed by theabove formulas (16) to (20).

In the gradation conversion curve F1( ) (FIG. 2) used in thisembodiment, an amplitude of the high frequency component having a 2,500or lower density value of the output image (converted image) f0(x, y) iscompressed to 20%, while the high frequency component preserves anamplitude of the input image if the density value is more than 2,500(indicated by a solid line in FIG. 4).

In the same manner as for the first embodiment, both of an averagedensity based on the above formula (30) and the above morphologicalfilter, for example, can be used for the smoothed image.

A profile of the obtained processed image fd(x, Y) is indicated by adotted line in FIG. 5. A density distribution range of 2,500 or lowerdensity values is compressed to 20% and the high frequency componentpreserves an amplitude of the input image.

Referring to FIG. 11, there is shown a constitution of the imageprocessing device according to this embodiment, which realizes the aboveformula (39).

In FIG. 11, an input image f1 is converted in its gradation by agradation converting unit 801 and a converted image F0 is obtained. Theconverted image F0 is sent to a subtraction unit 805 and smoothed by asmoothing unit 802 to obtain a smoothed image fuso. The smoothed imagefuso is sent to an addition unit 803.

On the other hand, the subtraction unit 805 subtracts the smoothed imagefuso from the above converted image F0 to obtain a high frequencycomponent. The high frequency component is subjected to a constantmultiplication by a multiplication unit 806 and to an addition to theabove smoothed image fuso by the addition unit 803, by which a processedimage fd is obtained.

As described above, according to the eighth embodiment, it becomespossible to compress or expand a density distribution range of anarbitrary gradation area of the input image and to keep an amplitude ofthe high frequency component after the gradation conversion at the sameamplitude of the high frequency component of the image before thegradation conversion. Furthermore, there are effects that it does notcause any overshoots nor undershoots and that a calculation time isreduced if a density average is used for the smoothed image.

[Ninth Embodiment]

Referring to FIG. 12, there is shown a constitution of an imageprocessing device according to a ninth embodiment.

In FIG. 12, there are shown an input image 900 as an original image, agradation converting unit 901 for converting a gradation of the originalimage 900, a converted image 902 after the gradation conversion, a finecoefficient storing unit 903 for storing a fine coefficient of agradation conversion curve used for the gradation converting unit 901, asmoothing image preparation unit 904 for preparing a smoothed image (lowfrequency image) 905 of the above converted image 902, a high frequencycomponent preparation unit 906 for calculating a difference between theconverted image 902 and the smoothed image 905, and a high frequencycomponent adding unit 907 for adding the high frequency componentprepared by the high frequency preparation unit 906 to the convertedimage 902 on the basis of the fine coefficient of the gradationconversion curve stored in the fine coefficient storing unit 903.

Referring to FIG. 13, there is shown a flowchart showing a processingflow of this embodiment. FIGS. 14 and 15 show gradation conversioncurves used for the gradation converting unit 901, in which an abscissaaxis indicates pixel values of an input image and an ordinate axisindicates pixel value of an output image. FIG. 14 shows an S-shapedgradation conversion curve and FIG. 15 shows a curve having slope A/Bfor B or lower input density values and slope 1 for input density valuesmore than B.

Next, an operation is described below along the processing flow shown inFIG. 13.

The gradation converting unit 901 converts the gradation of the originalimage 900 on the basis of the gradation conversion curves shown in FIGS.14 and 15, for example, as expressed by a formula (40) (Step S201). Inthis formula, f1(x, y) is a density value of the two-dimensional inputoriginal image 900, f0(x, y) is a density value of the two-dimensionalconverted image 902 after the gradation conversion, and F1( ) is thegradation conversion curve. Characters x, y indicate two-dimensionalcoordinates.f 0(x, y)=F 1(f 1(x, y))  (40)

The fine coefficient storing unit 903 calculates a fine coefficient ofthe gradation conversion curve expressed by a formula (41) and storesthe density value as a table c(x) (S202).c(x)=1−[∂F 1(x)/∂x]  (41)

Next, in the smoothing image preparation unit 904, the smoothed image905 is calculated from the image 902 on the basis of the above formula(30) (S203).

Subsequently, the high frequency component preparation unit 906calculates a high frequency image from the gradation converted image 902and the smoothed image 905 as expressed by the formula (42) (S204):fh(x, y)=f 0(x, y)−fus(x, y)  (42)where fh(x, y) is a pixel value of a high frequency image.

The high frequency component adding unit 907 adds the high frequencycomponent calculated by the high frequency component preparation unit906 to the converted image 902 after the gradation conversion on thebasis of the fine coefficient stored by the fine coefficient storingunit 903 as expressed by the following formula (43) to obtain aprocessed image fd(x, y) (S205):fd(x, y)=f 0(x, y)+a×c(f 0(x, y))×fh(x, y)  (43)where a is a constant.

The smoothed image 905 can also be calculated with the above formulas(16) to (20) by using a morphological operation.

The obtained profile of fus(x, y) preserves an edge structure and doesnot cause overshoots nor undershoots which are disadvantages of theconventional dynamic range compression.

According to this embodiment, it becomes possible to compress or expanda density distribution range of an arbitrary gradation area of the inputimage and to keep the amplitude of the high frequency component afterthe gradation conversion at the same amplitude of the high frequencycomponent of the image before the gradation conversion. Furthermore,there are effects that it does not cause any overshoots nor undershootsand that a calculation time is reduced if a density average is used forthe smoothed image.

[Tenth Embodiment]

A tenth embodiment will be described below by using accompanyingdrawings.

Referring to FIG. 16, there is shown an image processing device 1100according to this embodiment of the invention.

The image processing device 1100 is an image processing device of anX-ray image having a density value converting function, comprising apre-process circuit 1106, a density value converting unit 1113, a CPU1108, a main memory 1109, an operation panel, and an image displaydevice 1111, among which data is sent or received each other via a CPUbus 1107.

In addition, the image processing device 1100 has a data collectingcircuit 1105 connected to the pre-process circuit 1106 and atwo-dimensional X-ray sensor 1104 and an X-ray generating circuit 1101connected to the data collecting circuit 1105, and these circuits arealso connected to the CPU bus 1107.

Referring to FIG. 2, there is shown a flowchart showing a processingflow of the image processing device.

FIG. 18A shows an input image and FIG. 18B is a diagram as a result ofdeleting an X-ray irradiation area and a passing through area (an areathrough which an X-ray has passed) from the input image.

FIG. 19 is a diagram showing a relationship between a density area whichis visible on a gradation conversion curve and a density area of a notedarea, in which an abscissa axis indicates density values of an inputimage and an ordinate axis indicates density values of an output image.

In the image processing device 1100 having the above constitution, themain memory 1109 is used to store various data required for processingof the CPU 1108 and contains a work memory for works of the CPU 1108.The CPU 1108 controls an operation of the entire device following anoperation from the operation panel 1110 by using the main memory 1109.Accordingly, the image processing device 1100 operates as describedbelow.

First, an examined object 1103 is irradiated with an X-ray beam 1102from the X-ray generating circuit 1101. The X-ray beam 1102 passesthrough the examined object 1103 with being damped and reaches thetwo-dimensional X-ray sensor 1104 to be output as an X-ray image fromthe two-dimensional X-ray sensor 1104. In this embodiment, the X-rayimage output from the two-dimensional X-ray sensor 1104 is assumed to bea knee or thoracic vertebra image as shown in FIG. 18A, for example.

The data collecting circuit 1105 converts the X-ray image output fromthe two-dimensional X-ray sensor 1104 to electric signals to supply themto the pre-process circuit 1106. The pre-process circuit 1106 performspreprocessing such as offset correcting processing or gain correctingprocessing for the signals (X-ray image signals) from the datacollecting circuit 1105. The pre-processed X-ray image signals aretransferred as an input image to the main memory 1109, an irradiationarea extracting circuit 1112, and a passing through deleting circuit1113 a of the density value converting unit 1113 via the CPU bus 1107under a control of the CPU 1108.

In the density value converting unit 1113, there are the passing throughdeleting circuit 1113 a for deleting a passing through area and a bodyarea in contact with the passing through area within a fixed space, amaximum/minimum value extracting circuit 1113 b for calculating themaximum and minimum values of the density value from an area which hasnot been deleted by the passing through deleting circuit 1113 a, asmoothing image preparing circuit 1113 c for preparing a smoothed imageof the input image, a high frequency component preparing circuit 1113 dfor preparing a high frequency component on the basis of the differencebetween the input image and the smoothed image, a density valueconverting circuit 1113 e for converting the density value of thesmoothed image on the basis of the maximum and minimum values extractedby the maximum/minimum value extracting circuit 1113 b, and a highfrequency component adding circuit 1113 f for adding the high frequencycomponent prepared by the high frequency component preparing circuit1113 d to the image converted by the density value converting circuit1113 e.

Subsequently, the operation of the density value converting unit 1113 isdescribed below by using the flowchart in FIG. 17.

The irradiation area extracting circuit 1112 receives an input imageprocessed by the pre-process circuit 1106 via the CPU bus 1107 under thecontrol of the CPU 1108 and extracts an irradiation area in the inputimage (Step S1201). On the other hand, the passing through deletingcircuit 1113 a which has received the input image replaces a passingthrough area outside and inside the irradiation area and a body areawhich is in contact with the passing through area within a fixed spacewith 0 pixels, for example (Step S1202). Specifically, the image isconverted as follows. $\begin{matrix}{{{f1}\left( {x,y} \right)} = {{f\left( {x,y} \right)}X{\prod\limits_{{x1} = {- {d1}}}^{{x1} = {d1}}\quad{\prod\limits_{{y1} = {- {d2}}}^{{y1} = {d2}}\quad{{sgn}\left( {{x + {x1}},{y + {y1}}} \right)}}}}} & (112)\end{matrix}$where f(x, y) is image data and f1(x, y) is an image as a result ofdeleting the passing through area and the body area in contact with thepassing through area within a fixed space. Sgn(x, y) is expressed by thefollowing formula (113):If sgn(x, y)=0 and f(x, y)≧Th 1, sgn(x, y)=1, etc.  (113)where Th1 is a constant determined by an experiment and d1 and d2 areconstants for determining a width by which a body area is deleted.

FIG. 18B shows an image obtained by replacing an area outside theirradiation area of the input image and the passing through area withzero (0).

Next, the maximum/minimum value extracting circuit 1113 b calculates themaximum value (d2 in FIG. 19) and the minimum value (d3 in FIG. 19) ofthe image density value (Step S1203). In calculating the maximum valueand the minimum value, the values can also be extracted from thesmoothed image of an area after the irradiation area and the passingthrough area are deleted. Subsequently the smoothing image preparingcircuit 1113 c prepares a smoothed image on the basis of the followingformula (Step S1204), supposing that fus(x, y) is a pixel value of asmoothed (low frequency) image of the input image f0(x, y), which isexpressed by the formulas (114) to (118) or a formula (119), forexample:f 2(x, y)=min{f 0(x+x 1, y+y 1)−D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (114)f 3(x, y)=max{f 2(x+x 1, y+y 1)+D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (115)f 4(x, y)=max{f 3(x+x 1, y+y 1)+D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (116)fus(x, y)=min{f 4(x+x 1, y+y 1)−D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (117)where D(x, y) indicates a disc filter and r1 indicates an arbitraryconstant, selected according to the input image. D(x, y)=0, x×x+y×y≦r 1 ×r 1=−∞, etc.  (118)

A profile of fus(x, y) obtained here preserves an edge structure, bywhich it does not cause overshoots nor undershoots which aredisadvantages of the conventional dynamic range compression.

For the smoothed image, it is possible to use both of an average densityexpressed by the formula (117), for example, and the following formula:$\begin{matrix}{{{fus}\left( {x,y} \right)} = \frac{\int_{- d}^{d}{\int_{- d}^{d}{{{f1}\left( {{x + {x1}},{y + {y1}}} \right)}{\mathbb{d}{x1}}{\mathbb{d}{y1}}}}}{\int_{- d}^{d}{\int_{- d}^{d}{{\mathbb{d}{x1}}{\mathbb{d}{y1}}}}}} & (119)\end{matrix}$where d indicates a constant.

In addition, it is also possible to prepare a smoothed image by using anerosion, dilation, opening, or closing morphological filter, forexample.

Subsequently, the high frequency component preparing circuit 1113 cprepares a high frequency image fh(x, y) on the basis of the formuladescribed below from the input image f0(x, y) and the smoothed imagefus(x, y) (Step S205). Then, the density value converting circuit 1113 econverts the density value by the formula described below on the basisof the maximum value (d3) and the minimum value (d2) extracted by themaximum/minimum value extracting circuit 1113 b and density values d1and d4 determined by a visible density value after a gradationconversion to prepare a smoothed image Sus0×(x, y) as a result ofconverting the density value (Step S1206).

In FIG. 19, Sightmax and Sightmin indicate the visible maximum andminimum density values corresponding to d4 and d1, respectively. If thedensity value of the smoothed image is within a range of min (theminimum value which can be obtained in the smoothed image) to d1,Susu 0(x, y)=(d 1−min)×((Sus(x, y))−min)/(d 2−min)+min  (120)If d 2 <Sus(x, y)≦d 3, Susu 0(x, y)=(d 4 −d 1)×(Sus(x, y)−d 2)/(d 3 −d2)+d 1  (121)If d 3 <Sus(x, y)≦max, Susu 0(x, y)=(max−d 4)×(Sus(x, y)−d 3)/(max−d3)+d 4  (122)

Then, the high frequency image fh(x, y) is added to the density-valueconverted image Susuo(x, y) to obtain a final image fe(x, y) (StepS1207).fe(x·y)=Susu 0(x, y)+fh(x, y)  (123)

Finally, the obtained image fe(x, y) is converted in its gradation bythe gradation converting circuit 1114 and it is output as a film outputor displayed on an image display device 1111.

Although an operation for an image having a passing through area hasbeen described in this embodiment, the maximum value and the minimumvalue can be extracted by the maximum/minimum value extracting circuit1113 b from an image within an irradiation area bypassing the passingthrough deleting circuit 1113 a if there is no passing through area.

According to this embodiment, it is possible to compress or expand animage in a noted area to a fixed range with preserving a high frequencycomponent and to use image information effectively. Furthermore,assuming that the above fixed range is a visible area on a film, a notedarea can be expanded or compressed to a size of the visible area on thefilm. In addition, in extracting the maximum value or the minimum valueform a smoothed image, there is an effect that the conversion with thedensity value converting unit 1113 can be performed more precisely.

[Eleventh Embodiment]

Referring to FIG. 20, there is shown a constitution of an X-rayphototaking device 1600 to which an image processing device is appliedaccording to an Eleventh embodiment. The X-ray phototaking device 1600,which has an image processing function, comprises a pre-process circuit1606, a CPU 1608, a main memory 1609, an operation panel 1610, an imagedisplay device 1611, and an image processing circuit 1612, among whichdata is sent or received each other via a CPU bus 1607.

In addition, the image processing device 1600 has a data collectingcircuit 1605 connected to the pre-process circuit 1606 and atwo-dimensional X-ray sensor 1604 and an X-ray generating circuit 1601connected to the data collecting circuit 1605, and these circuits arealso connected to the CPU bus 1607.

In this diagram, there are a characteristic extracting circuit 1612 afor calculating a characteristic amount for a gradation conversion, acontrol circuit 1612 b for calculating a range and a change amount ofchanging a dynamic range on the basis of a gradation conversion curve ofa first gradation converting circuit, and a DRC circuit 1612 c forchanging a dynamic range of an original image on the basis of the rangeand the change amount of changing the dynamic range calculated by thecontrol circuit 1612 b. The DRC circuit 1612 c comprises a secondgradation converting circuit 1613 for converting a gradation of theoriginal image and a high frequency component adjusting circuit foradding a high frequency component of the original image to the imagewhose gradation has been converted by the second gradation convertingcircuit 1613. A first gradation converting circuit 1612 d converts agradation of the original image whose dynamic range has been changed bythe DRC circuit 1612 c.

Referring to FIG. 22, there is shown a diagram illustrating an area fromwhich a characteristic is extracted when phototaking the side ofcervical vertebrae, for example.

Referring to FIG. 23, there is shown a gradation conversion curve of thefirst gradation converting circuit 1612 d, in which an abscissa axisindicates pixel values and an ordinate axis indicates density values. Inaddition, reference character Sl indicates a pixel value correspondingto a lower limit density value of a visibility limit on a density,reference character Sh indicates a pixel value corresponding to an upperlimit density value of the visibility limit on the density, referencecharacters Smin and Smax indicate the minimum pixel value and themaximum pixel value of a noted area, reference character Sa indicates apixel value corresponding to a characteristic amount calculated by thecharacteristic extracting circuit 1612 a, and reference characters d1 andh indicate pixel values corresponding to a lower limit density valueand an upper limit density value of a range which is not subjected to achange of the dynamic range, respectively.

Referring to FIG. 24, there is shown a gradation conversion curve of thesecond gradation converting circuit 1613, in which an abscissa axisindicates input pixel values, an ordinate axis indicates output pixelvalues, and d1, dh, and Sa indicate the above pixel values. A gradationconversion curve a is formed only by linear components, while agradation conversion curve b is formed by a smooth curve so as to obtaincontinuous differential values of the gradation conversion curve a.

In the above X-ray phototaking device, first the main memory 1609 isused to store various data required for processing in the CPU 1608 andcontains a work memory for works of the CPU 1608.

The CPU 1608 controls an operation of the entire device following anoperation from the operation panel 1610 by using the main memory 1609.Accordingly, the X-ray phototaking device 1600 operates as describedbelow.

First, an examined object 1603 is irradiated with an X-ray beam 1602from an X-ray generating circuit 1601. The X-ray beam 1602 from theX-ray generating circuit 1601 passes through the examined object 1603with being damped and reaches the two-dimensional X-ray sensor 1604 tobe output as an X-ray image from the two-dimensional X-ray sensor 1604.The X-ray image output from the two-dimensional X-ray sensor 1604 is animage of a human body, for example.

The data collecting circuit 1605 converts the X-ray image output fromthe two-dimensional X-ray sensor 1604 to electric signals to supply themto the pre-process circuit 1606. The pre-process circuit 1606 performspreprocessing such as offset correcting processing or gain correctingprocessing for the signals (X-ray image signals) from the datacollecting circuit 1605. The X-ray image signals pre-processed by thepre-process circuit 1606 are transferred as an input image to the mainmemory 1609 and an image processing circuit 1612 via the CPU bus 1607under a control of the CPU 1608.

Next, the operation of the image processing circuit 1612 is describedbelow following the processing flowchart in FIG. 21.

The characteristic extracting circuit 1612 a receives an original imagef0(x, y) processed by the pre-process circuit 1606 via the CPU bus 1607under the control of the CPU 1608 and calculates a characteristic amountSa for a gradation conversion (S1701). This characteristic amountcalculation method depends upon a region, and a plurality of methods arealso applied by an applicant of this invention. In phototaking an imageof cervical vertebrae, for example, a method disclosed in the JapanesePatent Application No. 10-272284 is used. In this method, depressioninformation of a neck is used as a characteristic amount Sa to calculatean average value of pixel values from an area a shown in FIG. 22.

Subsequently, a gradation conversion curve with the first gradationconverting circuit 1612 d is defined by using the characteristic amountSa. As shown in FIG. 23, for example, a gradation conversion curve isdefined so that the pixel value of the characteristic amount Sa ischanged to that of a density value 1.0.

Next, the control circuit 1612 b calculates a range and a change amountof changing a dynamic range of an original image on the basis of theabove defined gradation conversion curve (S1703).

The method is described specifically below. For example, an ordinaryJapanese is visible in a range of density values 0.2 to 3.0. On thebasis of the above gradation conversion curve, a calculation is made forthe pixel values S1 and Sh which are to be converted in the gradation todensity values 0.2 and 3.0, respectively. Subsequently, a range in whicha dynamic range is not changed is calculated on the basis of thefollowing formulas (124) and (125):d 1 =Sa−h 1  (124)dh=Sa+hh  (125)where h1 and hh indicate constants and d1 and dh indicate pixel valuesto be a starting point of changing the dynamic range. Next, a changeamount Rl and Rh for d1 and lower pixel values and for pixel valuesgreater than d1 are calculated on the basis of the following formulas(126) and (127), respectively: Rl=(Sl−dl)/(Smin−−dl)  (126)Rh=(Sh−dh)/(Smax−dh)  (127)where Smin and Smax indicate the minimum and maximum values among pixelvalues in the area of an object for photographing (noted area),respectively. In other words, if a dynamic range of dl and lower pixelvalues is multiplied by Rl, the pixel value Smin is changed to the pixelvalue Sl. In the same manner, the pixel value Smax is changed to thepixel value Sh. In other words, supposing that the starting point is d1and dh and that a change amount is Rl and Rh, the density value of thearea of an object for photographing after a gradation conversion matchesa range of a visible area (a range of the density values 0.2 to 3.0 inthe above).

As described above, all of the noted area of the photographed image canbe reproduced on an output image by obtaining the values Rl and Rh evenif the dynamic range is compressed. Accordingly, an instability inextracting characteristics can be absorbed, by which a diagnosticperformance can be improved.

In addition, restrictive conditions can be applied to the change amountsRl and Rh as expressed by the following formulas (128) and (129):Rl<Cl  (128)Rh<Ch  (129)where Cl and Ch are constants. Values Cl, Ch, hl, and hh areexperimentally determined for each region to be photographed.

By providing the restrictive conditions in this manner, an excessivecompression can be prevented, by which a diagnostic performance can beprevented from being lowered by the excessive compression.

Subsequently, a gradation conversion curve of the second gradationconverting circuit 1713 is prepared as shown in FIG. 24 on the basis ofthe dl, dh, Rl, and Rh calculated by the control circuit 1712 b. A slopeof dl and lower pixel values on the gradation conversion curve a isequal to Rl, a slope in a range of pixel values d1 to dh is equal to 1,and a slope of pixel values greater than dh is equal to Rh. A gradationconversion curve b is smoothed so as to obtain continuous differentialvalues of the gradation conversion curve a (for example, Japanese PatentApplication No. 11-76882 to Shinbata is used). If the gradationconversion curve a is used, a false outline may be generated atdiscontinuous differential points. If the gradation conversion curve bis used, however, no false outline is generated. In this embodiment, adescription will be made below for an operation in using the gradationconversion curve b.

The DRC circuit 1712 c selects whether or not the high frequencycomponent is preserved (S1704).

Processing without preserving the high frequency component is effectivefor diagnosing stem tissues in which a low frequency component isimportant.

Processing with preserving the high frequency component is effective fordiagnosing a bone portion or a lung field in which the high frequencycomponent is important.

The processing selection in S1704 can be performed by an automaticselection on the basis of the photographed region and also can beperformed by a manual selection by a user in view of the abovecharacteristics.

Unless the high frequency component is preserved, an original image isconverted in the gradation by using the gradation conversion curve b bythe second gradation conversion circuit 1713 (S1708). The image afterthe gradation conversion is converted in the gradation by the firstgradation converting circuit 1612 d (S1709). Supposing that x and y arecoordinates of the original image, f0(x, y) indicates a pixel value ofthe original image, F(x) indicates a gradation conversion curve b, f1(x,y) indicates a pixel value after the gradation conversion based on thegradation conversion curve b, and F1(x) indicates a gradation conversioncurve of the first gradation converting circuit 1612 d, a final imagef2(x, y) is expressed by the following formula (130):f 2(x, y)=F 1(F(f 0(x, y))  (130)where F1(F(x)) is considered to be a single gradation conversion curve.

Next, a calculation is described below for preserving the high frequencycomponent. First, a high frequency component fh(x, y) of the originalimage is calculated on the basis of the following formula (131) by thehigh frequency component adjusting circuit 1614, with the smoothed imagefus(x, y) being calculated on the basis of the formula (132):fh(x, y)=f 0(x, y)−fus(x, y)  (131)where d is a constant indicating a mask size. $\begin{matrix}{{{fus}\left( {x,y} \right)} = \frac{\int_{- d}^{d}{\int_{- d}^{d}{{{f0}\left( {{x + {x1}},{y + {y1}}} \right)}{\mathbb{d}{x1}}{\mathbb{d}{y1}}}}}{\int_{- d}^{d}{\int_{- d}^{d}{{\mathbb{d}{x1}}{\mathbb{d}{y1}}}}}} & (132)\end{matrix}$

Then, the second gradation converting circuit 1613 performs a gradationconversion expressed by the following formula (133):f 1(x, y)=F(f 0(x, y))  (133)

Subsequently, the high frequency component adjusting circuit 1614calculates a coefficient c(x) from a fine coefficient of the gradationconversion curve b used by the second gradation converting circuit 1613on the basis of the following formula (134), supposing that thecoefficient c(x) is a value equal to 1 minus a slope of the gradationconversion curve: $\begin{matrix}{{c(x)} = {1 - \frac{\partial{F(x)}}{\partial x}}} & (134)\end{matrix}$Then, the high frequency component adjusting circuit 1614 adds the highfrequency component h(x, y) to the image f1(x, y) on the basis of thecoefficient c(x) as expressed by the following formula (135) to obtain aprocessed image f3(x, y) (S1707):f 3(x, y)=f 1(x, y)+c(f 0(x, y))×fh(x, y)  (135)Subsequently, the first gradation converting circuit 1612 d performs agradation conversion on the basis of the following formula (136) toobtain an image f28(x, y) (S1709):f 2(x, y)=F 1(f 3(x, y))  (136)

A smoothed image fus(x, y) can be calculated by a morphologicaloperation as expressed by the following formulas (137) to (141):f 2(x, y)=min{f 0(x+x 1, y+y 1)−D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (137)f 3(x, y)=max{f 2(x+x 1, y+y 1)+D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (138)f 4(x, y)=max{f 3(x+x 1, y+y 1)+D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (139)fus(x, y)=min{f 4(x+x 1, y+y 1)−D(x 1, y 1)|x 1 ×x 1 +y 1 ×y 1 ≦r 1 ×r1}  (140)where D(x, y) is a disc filter and r1 is an arbitrary constant, selectedaccording to an input image.D(x, y)=0, x×x+y×y≦r 1 ×r 1=−∞, etc.  (141)A profile of fus(x, y) obtained here preserves an edge structure, bywhich it does not cause overshoot nor undershoots which aredisadvantages of the conventional dynamic range compression.

According to this embodiment, it becomes possible to compress or expanda density distribution range of an arbitrary gradation area of the inputimage and to keep an amplitude of the high frequency component after thegradation conversion at the same amplitude of the high frequencycomponent of the image before the gradation conversion. Furthermore, adynamic range of the image is changed on the basis of the pixel valuedetermined by the gradation conversion curve, and therefore the dynamicrange can be changed assuming a density value of the image after thegradation conversion, by which a range of the density value after thegradation conversion can be adjusted uniquely.

In addition, a pixel value depending upon a visibility limit is obtainedfrom the gradation conversion curve and a range and an amount ofchanging the dynamic range can be determined based on the pixel value,and therefore a range of the density value of the pixel value in thenoted area can be put within the visible range. Furthermore, the notedarea exists in a visible area, and therefore the entire noted area canbe observed, by which a diagnostic performance is increased. Stillfurther, the noted area can be matched with the range of the visiblearea, by which an information amount of the noted area can be expandedto the maximum as a density value. There is provided a range in whichthe dynamic range of the image is not changed, and therefore assuming apixel range important for a diagnosis to be an area in which the dynamicrange is not changed, it is represented with density values in theconventional manner and an area which has been invisible conventionallycan also be observed with density values, by which the diagnosticperformance is increased.

Furthermore, the high frequency component is preserved by the dynamicrange changing unit, and therefore an information amount of the highfrequency component is not decreased and further it becomes possible toobserve density values of an area which have been invisible on thedensity values, by which the diagnostic performance is increased.

[Twelfth Embodiment]

Referring to FIG. 25, there is shown a constitution of an imageprocessing device 2100 according to a Twelfth embodiment.

The image processing device 2100, which is an X-ray image processingdevice having a density value converting function, comprises apre-process circuit 2106, a density value converting circuit 2113, a CPU2108, a main memory 2109, an operation panel 2110, and an image displaydevice 2111, among which data is sent or received each other via a CPUbus 2107.

The image processing device 2100 also comprises a data collectingcircuit 2105 connected to the pre-process circuit 2106 and atwo-dimensional X-ray sensor 2104 and an X-ray generating circuit 2101connected to the data collecting circuit 2105. These circuits are alsoconnected to the CPU bus 2107.

The density value converting circuit 2113 comprises a passing throughdeleting circuit 2113 a, analysis circuits (1) to (n) 2113 b to 2113 e,a DRC circuit 2113 f, and a control circuit 2113 g.

Referring to FIG. 26, there is shown a flowchart showing a processingflow of the image processing device according to this embodiment. FIG.27 shows a flowchart of a processing flow of the dynamic rangecompression (DRC) circuit and FIG. 28 shows a density value conversioncurve used for the DRC circuit.

Referring to FIG. 29, there is shown a screen displayed on the imagedisplay device 2111 by the control circuit, in which a density valueconversion curve 2501 is determined by parameters of DRC processing.Diagram 2502 shows an input image or a DRC-processed image and densitystarting points for the DRC processing; for example, triangles indicatecompression density starting points in a low density side and crossmarks indicate compression density starting points in a high densityside. When using a color monitor, the starting point density values arechanged in red or blue. Reference numeral 2510 indicates a changing unitfor changing parameters for the DRC processing, having parameter changebuttons 2503 to 2506. There are a button 2503 for changing a compressionstarting point in the low density side, a button 2504 for changing acompression rate in the low density side, a button 2505 for changing acompression starting point in the high density side, and a button 2506for changing a compression rate in the high density side.

FIG. 30 shows a flowchart of a processing flow of the above analysiscircuit (1) and FIG. 31 shows a diagram of a histogram and acharacteristic amount generated by the analysis circuit (1). FIGS. 32,33, and 34 show a diagram illustrating a relationship between agradation conversion curve and a visible density value, a flowchart of aprocessing of an analysis circuit (2), and a diagram illustrating arelationship between a profile generated by the analysis circuit (2) anda characteristic amount, respectively.

Next, an operation of the image processing device 2100 having the aboveconstitution is described below.

The main memory 2109 is used to store various data required forprocessing of the CPU 2108 and contains a work memory for works of theCPU 2108. The CPU 2108 controls the entire operation of the devicefollowing an operation from the operation panel 2110 by using the mainmemory 2109. Accordingly, the image processing device 2100 operates asdescribed below.

First, an examined object 2103 is irradiated with an X-ray beam 2102from the X-ray generating circuit 2101. The emitted X-ray beam 2102passes through the examined object 2103 with being damped and reachesthe two-dimensional X-ray sensor 2104 to be output as an X-ray imagefrom the two-dimensional X-ray sensor 2104. In this embodiment, theX-ray image output from the two-dimensional X-ray sensor 2104 is assumedto be an image of a chest, limbs including a knee, and thoracicvertebra, for example.

The data collecting circuit 2105 converts the X-ray image output fromthe two-dimensional X-ray sensor 2104 to electric signals to supply themto the pre-process circuit 2106. The pre-process circuit 2106 performspreprocessing such as offset correcting processing or gain correctingprocessing for the signals (X-ray image signals) from the datacollecting circuit 2105. The pre-processed X-ray image signals aretransferred as an input image to the main memory 2109, an irradiationarea extracting circuit 2112, and a passing through deleting circuit2113 a of the density value converting circuit 2113 via the CPU bus 2107under a control of the CPU 2108.

In the density value converting circuit 2113, there are the passingthrough deleting circuit 2113 a for deleting a passing through area ofthe image (an area through which the X-ray passes) and a body area incontact with the passing through area within a fixed space, an analysiscircuit (1) 2113 b for calculating parameters for the DRC processingfrom areas which have not been deleted by the passing through deletingcircuit 2113 a for coping with an image of limbs or the like, ananalysis circuit (2) 2113 c for calculating the parameters for the DRCprocessing from the areas which have not been deleted by the passingthrough deleting circuit 2113 a for coping with an image of hands andfeet or the like, an analysis circuit (3) 2113 d for calculating theparameters for the DRC processing from the areas which have not beendeleted by the passing through deleting circuit 2113 a for coping withan image of a front view of lungs, and an analysis circuit (n) 2113 efor calculating the parameters for the DRC processing for coping with animage of other regions, indicating a plurality of analysis circuits inthis embodiment.

The DRC circuit 2113 f performs the DRC processing for an input image.The control circuit 2113 g controls the operation to display an imagesubjected to the DRC processing by the DRC circuit 2113 f and theparameters for the DRC processing on the image display device 2111.

The gradation converting circuit 2114 converts the DRC-processed imagein the gradation for a printer (not shown) or the image display device2111.

Subsequently, the operation of the density value converting circuit 2113is described below by using the flowchart in FIG. 26.

First, on the basis of an input from the operation panel 2110, it isselected whether the parameters for the DRC processing are automaticallycalculated by using the analysis circuits 2113 a to 2113 e or manuallyinput by using the changing unit 2510 (S2201).

Then, the processing for a selection of the manual input is describedbelow.

A predetermined parameter for the DRC processing is input in the DRCcircuit 2113 f and the input image is subjected to the DRC processing.The DRC processing flow is described below by using FIG. 27.

First, the DRC circuit 2113 f receives an input image f(x, y) from thepre-process circa 2106 or the main memory 2109 and calculates a smoothedimage Sus(x, y) on the basis of the following formula (Step S2301):$\begin{matrix}{{{Sus}\left( {x,y} \right)} = \frac{\int_{- {d1}}^{d1}{\int_{- {d2}}^{d2}{{f\left( {{x + {x1}},{y + {y1}}} \right)}{\mathbb{d}{x1}}{\mathbb{d}{y1}}}}}{\int_{- {d1}}^{d1}{\int_{- {d2}}^{d2}{{\mathbb{d}{x1}}{\mathbb{d}{y1}}}}}} & (203)\end{matrix}$

Then, the smoothed image Sus(x, y) is stored in the main memory 2209until it receives an end signal from the CPU 2208 (Step S2302). Next, ahigh frequency component fh(x, y) is prepared with the following formula(Step S2303):fh(x, y)=f(x, y)−S _(us)(x, y)  (204)

Subsequently, the high frequency component fh(x, y) is stored in themain memory 2209 until it receives an end signal from the CPU 2208 (StepS2304).

Next, four parameters for the DRC processing, a compression startingpoint in the low density side, a compression rate in the low densityside, a compression starting point in the high density side, and acompression rate in the high density side are input in the DRC circuit2113 f (Step S2305). This input is performed by the changing unit 2510or for the automatic selection performed with an output value from eachanalysis circuit or with a default parameter stored in the main memory2109.

Subsequently, a density value of an original image is converted on thebasis of a density value conversion curve F( ) as shown in FIG. 28, forexample (Step S2306). In this diagram, F( ) depends upon a compressionstarting point in the low density side, a compression rate in the lowdensity side, a compression starting point in the high density side, anda compression rate of the high density side, and the compression rate inthe low density side is equal to a slope of a straight line a; forexample, if the compression rate is 0.3, the slope is 0.3. In addition,a slope of the straight line c is equal to a compression rate in thehigh density side. Characters low v indicates the compression startingpoint in the low density side and characters high v indicates thecompression starting point in the high density side. A density value isconverted on the basis of this density value conversion curve F( ).

Next, the high frequency component fh(x, y) according to a slope of thedensity value conversion curve Fo is added to an image fa(x, y) afterthe density value conversion (Step S2307). A series of processing isexpressed by the following formulas at a time: $\begin{matrix}{{{f_{c}\left( {x,y} \right)} = {{f_{a}\left( {x,y} \right)} + {\left( {1 - \frac{\partial{F\left( {S_{us}\left( {x,y} \right)} \right)}}{\partial{S_{us}\left( {x,y} \right)}}} \right) \times {f_{h}\left( {x,y} \right)}}}},{or},\quad{{f_{c}\left( {x,y} \right)} = {{f_{a}\left( {x,y} \right)} + {\left( {1 - \frac{\partial{F\left( {f\left( {x,y} \right)} \right)}}{\partial{f\left( {x,y} \right)}}} \right) \times {f_{h}\left( {x,y} \right)}}}}} & (205)\end{matrix}$  f _(a)(x, y)=F(f(x, y))  (206)

fc(x, y) indicates a mask size for generating a smoothed image of theimages d1 an d2 after the DRC processing.

If the processing is completed, the smoothed image and the highfrequency component stored in the main memory 2209 are releasedfollowing an instruction from the CPU 2208. Otherwise, processing fromStep S2305 is repeated. In this processing, however, the smoothed imageand high frequency component already generated and stored in the mainmemory 2209 are used.

Next, the control returns to the processing shown in FIG. 26 to convertthe DRC-processed image by the gradation converting circuit 2114 on thebasis of the gradation curve for the image display device 2111 (StepS2111) and to display the converted image on the image display device2111 by using the control circuit 2113 g. This display is shown in 2502in FIG. 29 (Step S2211). In this diagram, triangles indicate compressiondensity starting points in the low density side and cross marks indicatecompression density starting points in the high density side. When usinga color monitor, the starting point density values are changed in red orblue. At the same time, the density value conversion curve F( ) used forthe DRC processing is displayed as indicated by 2501.

If the DRC-processed image is required to be changed, parameters for theDRC processing are changed by using the changing unit 2510 (Step S2213)and processing is repeated from Step S2208 again. If the processing isterminated, the smoothed image and the high frequency component storedin the main memory 2209 are released.

Next, processing is described for a case in which a method ofcalculating parameters for the DRC processing according to an analysiscircuit is selected in the above step S2201.

First, an analysis circuit is selected based on a predetermined code foreach region. For example, parameters for the DRC processing of an imageof limbs are extracted for the analysis circuit (1) and processing inFIG. 30 is performed.

The irradiation area extracting circuit 2113 a receives the input imageprocessed by the pre-process circuit 2106 via the CPU bus 2107 under thecontrol of the CPU 2108 and extracts the irradiation area in the inputimage. On the other hand, the passing through deleting circuit 2113 awhich has received the input image replaces passing through areasoutside and inside the irradiation area and a body area in contact withthe passing through areas within a fixed space with 0 pixels (StepS2601). Specifically, the image is converted as follows. $\begin{matrix}{{{f1}\left( {x,y} \right)} = {{f\left( {x,y} \right)}X{\prod\limits_{{x1} = {- {d1}}}^{{x1} = {d1}}\quad{\prod\limits_{{y1} = {- {d2}}}^{{y1} = {d2}}\quad{{sgn}\left( {{x + {x1}},{y + {y1}}} \right)}}}}} & (207)\end{matrix}$where f(x, y) is image data and f1(x, y) is an image as a result ofdeleting the passing through area and the body area in contact with thepassing through area within a fixed space. sgn(x, y) is expressed by thefollowing formula, supposing that Th1 is a constant determined by anexperiment and d1 and d2 are constants for determining a width by whicha body area is deleted:If sgn(x, y)=0 and f(x, y)≧Th 1, sgn(x, y)=1, etc.  (208)

Next, a histogram (FIG. 31) for an area which has not been deleted isprepared and analysis processing is performed (Steps S2602 and S2603).Specifically, a shape of the histogram is analyzed to extract a densityvalue Target at a peak position in the low density side and it isassumed to be a compression starting point in the high density side.Furthermore, a compression rate in the high density side is calculatedon the basis of the following formula:Ch=(max−Target))/(Bodymax−Target)  (209)where max is a density value corresponding to the maximum densitySightmax which can be recognized visually after a gradation conversionas shown in FIG. 32 and Bodymax is the maximum value of an area afterdeleting the passing through area. For an image of limbs, only an areain the high density side is compressed.

In the analysis circuit (2), DRC parameters for an image of a front viewof lungs are calculated following a processing flow in FIG. 33.

First, an image as a result of deleting the passing through area isobtained by performing processing with the irradiation area extractingcircuit 2112 and the passing through deleting circuit 2113 a (StepS2710) and the maximum value max is calculated from the image as aresult of deleting the passing through area (Step S2720).

Subsequently, a profile through the maximum value is prepared (FIG. 34)(Step S2730) and the minimum value min of a depression is extracted(Step S2740). Then, a compression starting point d1 in the low densityside is calculated with the following formula (Step S2750):dl=min+(max−min)/2  (210)

For a front view of an arm, only an area in the low density side iscompressed and a fixed value is used as a compression rate.

Analysis circuits (3) to (n) are used for analyzing other regions.

Next, DRC processing is performed by using the DRC circuit 2113 f (StepS2208). In this processing, for a parameter in the density side whosearea is not compressed, a compression rate is set to 1 and the minimumvalue of the input image is used for the low density side and themaximum value of the input image is for the high density side as acompression density starting points.

A description of Steps S2210 and after is omitted since it is the sameas for a manual input with the changing unit 2510.

The processing which has been described in the above embodiments (forexample, shown in FIG. 1) can be applied to processing with the densityvalue converting circuit 2113.

[Other Embodiments]

The above embodiments can be realized in both hardware and softwareconstitutions. In addition, the processing can be performed by running aprogram for executing processing of the above flowchart using a computersystem formed by the above memory such as the main memory and otherdevices.

As a storage medium for storing the program, a semiconductor memory suchas a ROM or RAM, an optical disk, an optical magnetic disk, or amagnetic storage medium can be used, and a CD-ROM, an FD, a magneticcard, a magnetic tape, or a non-volatile memory card can be used forthem.

It is apparent that the above embodiments and equivalent functions canbe performed and equivalent effects be obtained even if an operatingsystem or the like running on the computer performs partially orentirely processing or if a program code read from a storage medium iswritten into an extended function board inserted in a computer or into amemory in an extended function unit connected to a computer and then aCPU or the like in the extended function board or the extended functionunit performs partially or entirely processing on the basis of aninstruction of the program code, so that these cases are included in thepresent invention.

Although the present invention has been described in its preferred formwith a certain degree of particularity, many apparently widely differentembodiments of the invention can be made without departing from thespirit and the scope thereof. It is to be understood that the inventionis not limited to the specific embodiments thereof except as defined inthe appended claims.

1. An image data processing apparatus that changes a dynamic range of anoriginal image data, comprising: a gradation conversion unit adapted toperform a gradation conversion on the original image data, based on agradation conversion curve; a high-frequency-component generation unitadapted to generate a high-frequency component of the original imagedata or an image data obtained from the gradation conversion performedon the original image data by said gradation conversion unit; aconversion unit adapted to convert a magnitude of an amplitude of thehigh-frequency component; and a control unit adapted to control anaddition of the high-frequency component converted by said conversionunit, after performance of the gradation conversion on the originalimage data by said gradation conversion unit, wherein said conversionunit converts the magnitude of the amplitude of the high-frequencycomponent, based on information concerning an inclination of thegradation conversion curve.
 2. An apparatus according to claim 1,wherein said conversion unit converts the magnitude of the amplitude ofthe high-frequency component, based on the information concerning theinclination of the gradation conversion curve and a pixel value obtainedbased on the original image data.
 3. An apparatus according to claim 1,wherein said conversion unit converts the magnitude of the amplitude ofthe high-frequency component, based on a differential value of thegradation conversion curve.
 4. An apparatus according to claim 1,further comprising an input unit adapted to input a variable forchanging a form of the gradation conversion curve.
 5. An apparatusaccording to claim 1, wherein said high-frequency-component generationunit generates a smoothened image data of the original image data, andgenerates the high-frequency component by subtracting the smoothenedimage data from the original image data.
 6. An apparatus according toclaim 1, wherein said high-frequency-component generation unit generatesa smoothened image data of the original image data after the gradationconversion, and generates the high-frequency component by subtractingthe smoothened image data from the original image data after thegradation conversion.
 7. An apparatus according to claim 6, wherein thesmoothened image data is formed by using a morphological filter.
 8. Anapparatus according to claim 1, wherein said gradation conversion unitconverts a form of the gradation conversion curve, based on a featureamount calculated based on the original image data.
 9. An apparatusaccording to claim 5, wherein the smoothened image data is formed byusing a morphological filter.
 10. An apparatus according to claim 1,further comprising: radiation generation means for irradiating radiationrays onto an object; and a two-dimensional X-ray sensor for convertingradiation rays transmitted through the object into an image data,wherein the image data obtained by said two-dimensional X-ray sensorserves as the original image data.
 11. An image data processingapparatus comprising: a smoothening unit adapted to obtain a smoothenedimage data from an original image data; a high-frequency-componentgeneration unit adapted to generate, as a high-frequency component, adifference between the smoothened image data obtained by saidsmoothening unit and the original image data; a gradation conversionunit adapted to convert a gradation of the original image data by usinga gradation conversion curve; a second smoothening unit adapted toobtain a second smoothened image data from an image data obtained fromthe gradation conversion performed by said gradation conversion unit;and a high-frequency-component addition unit adapted to add thehigh-frequency component to the second smoothened image data.
 12. Anapparatus according to claim 11, wherein said high-frequency-componentaddition unit changes an amplitude of the high-frequency component,based on a pixel value obtained based on the original image data, andadds the high-frequency component whose amplitude has been changed tothe second smoothened image data.
 13. An image data processing apparatuscomprising: a smoothening unit adapted to obtain a smoothened image datafrom an original image data; a high-frequency-component generation unitadapted to generate, as a high-frequency component, a difference betweenthe smoothened image data obtained by said smoothening unit and theoriginal image data; a gradation conversion unit adapted to convert agradation of the original image data by using a gradation conversioncurve; a conversion unit adapted to convert a magnitude of an amplitudeof the high-frequency component, based on a value concerning aninclination of the gradation conversion curve; and ahigh-frequency-component addition unit adapted to add the high-frequencycomponent whose magnitude of the amplitude has been changed by saidconversion unit to the image data whose gradation has been converted.14. An apparatus according to claim 13, wherein said conversion unitconverts the magnitude of the amplitude of the high-frequency component,based on information concerning the inclination of the gradationconversion curve and a pixel value obtained based on the original imagedata.
 15. An image data processing apparatus comprising: a gradationconversion unit adapted to obtain a converted image data by converting agradation of an original image data; a smoothening unit adapted toobtain a smoothened image data by smoothing the converted image data; ahigh-frequency-component generation unit adapted to obtain, as ahigh-frequency component, a difference between the smoothened image dataand the converted image data; a conversion unit adapted to convert amagnitude of an amplitude of the high-frequency component, based on avalue concerning an inclination of a gradation conversion curve; and ahigh-frequency-component addition unit adapted to add the high-frequencycomponent whose magnitude of the amplitude has been converted by saidconversion unit to the converted image data.
 16. An apparatus accordingto claim 15, wherein said conversion unit converts the magnitude of theamplitude of the high-frequency component, based on informationconcerning the inclination of the gradation conversion curve and a pixelvalue obtained based on the original image data.
 17. An image dataprocessing method comprising: a high-frequency-component conversion stepof converting an amplitude of a high-frequency component of an imagedata, based on information concerning an inclination of a gradationconversion curve; and an addition step of adding the high-frequencycomponent, converted in said high-frequency-component conversion step,to an arbitrary image data.
 18. An image data processing method forchanging a dynamic range of an original image data, comprising: agradation conversion step of performing a gradation conversion on theoriginal image data, based on a gradation conversion curve; ahigh-frequency-component generation step of generating a high-frequencycomponent of the original image data or an image data obtained from thegradation conversion performed on the original image data in saidgradation conversion step; a conversion step of converting a magnitudeof an amplitude of the high-frequency component; and a control step ofcontrolling an addition of the high-frequency component converted insaid conversion step, after performance of the gradation conversion onthe original image data in said gradation conversion step, wherein saidconversion step includes converting the amplitude of the high-frequencycomponent, based on information concerning an inclination of thegradation conversion curve.
 19. An image data processing methodcomprising: a smoothening step of obtaining a smoothened image data froman original image data; a high-frequency-component generation step ofgenerating, as a high-frequency component, a difference between thesmoothened image data obtained in said smoothening step and the originalimage data; a gradation conversion step of converting a gradation of theoriginal image data by using a gradation conversion curve; a secondsmoothening step of obtaining a second smoothened image data from animage data obtained from the gradation conversion performed in saidgradation conversion step; and a high-frequency-component addition stepof adding the high-frequency component to the second smoothened imagedata.
 20. An image data processing method comprising: a smoothening stepof obtaining a smoothened image data from an original image data; ahigh-frequency component generation step of generating, as ahigh-frequency component, a difference between the smoothened image dataobtained in said smoothening step and the original image data; agradation conversion step of converting a gradation of the originalimage data by using a gradation conversion curve; a conversion step ofconverting a magnitude of an amplitude of the high-frequency component,based on a value concerning an inclination of the gradation conversioncurve; and a high-frequency-component addition step of adding thehigh-frequency component whose magnitude of the amplitude has beenchanged in said conversion step to the image data whose gradation hasbeen converted.
 21. An image data processing method comprising: agradation conversion step of obtaining a converted image data byconverting a gradation of an original image data; a smoothening step ofobtaining a smoothened image data by smoothing the converted image data;a high-frequency-component generation step of obtaining, as ahigh-frequency component, a difference between the smoothened image dataand the converted image data; a conversion step of converting amagnitude of an amplitude of the high-frequency component, based on avalue concerning an inclination of a gradation conversion curve; and ahigh-frequency-component addition step of adding the high-frequencycomponent whose magnitude of the amplitude has been converted in saidconversion step to the converted image data.
 22. A computer readablemedium containing a program for executing an image data processingmethod for changing a dynamic range of an original image data, themethod comprising: a gradation conversion step of performing a gradationconversion on the original image data, based on a gradation conversioncurve; a high-frequency-component generation step of generating ahigh-frequency component of the original image data or an image dataobtained from the gradation conversion performed on the original imagedata in said gradation conversion step; a conversion step of convertinga magnitude of an amplitude of the high-frequency component; and acontrol step of controlling an addition of the high-frequency componentconverted in said conversion step, after performance of the gradationconversion on the original image data in said gradation conversion step,wherein said conversion step includes converting the magnitude of theamplitude of the high-frequency component, based on informationconcerning an inclination of the gradation conversion curve.
 23. Acomputer readable medium containing a program for executing an imagedata processing method, the method comprising: a smoothening step ofobtaining a smoothened image data from an original image data; ahigh-frequency-component generation step of generating, as ahigh-frequency component, a difference between the smoothened image dataobtained in said smoothening step and the original image data; agradation conversion step of converting a gradation of the originalimage data by using a gradation conversion curve; a second smootheningstep of obtaining a second smoothened image data from an image dataobtained from the gradation conversion performed in said gradationconversion step; and a high-frequency-component addition step of addingthe high-frequency component to the second smoothened image data.
 24. Acomputer readable medium containing a program for executing an imagedata processing method, the method comprising: a smoothening step ofobtaining a smoothened image data from an original image data; ahigh-frequency-component generation step of generating, as ahigh-frequency component, a difference between the smoothened image dataobtained in said smoothening step and the original image data; agradation conversion step of converting a gradation of the originalimage data by using a gradation conversion curve; a conversion step ofconverting a magnitude of an amplitude of the high-frequency component,based on a value concerning an inclination of the gradation conversioncurve; and a high-frequency-component addition step of adding thehigh-frequency component whose magnitude of the amplitude has beenchanged in said conversion step to the image data whose gradation hasbeen converted.
 25. A computer readable medium containing a program forexecuting an image data processing method, the method comprising: agradation conversion step of obtaining a converted image data byconverting a gradation of an original image data; a smoothening step ofobtaining a smoothened image data by smoothing the converted image data;a high-frequency-component generation step of obtaining, as ahigh-frequency component, a difference between the smoothened image dataand the converted image data; a conversion step of converting amagnitude of an amplitude of the high-frequency component, based on avalue concerning an inclination of a gradation conversion curve; and ahigh-frequency-component addition step of adding the high-frequencycomponent whose magnitude of the amplitude has been converted in saidconversion step to the converted image data.
 26. A computer readablemedium containing a program for executing an image data processingmethod for changing a dynamic range of an original image data, themethod comprising: a gradation conversion step of performing a gradationconversion on the image data, based on a gradation conversion curve; ahigh-frequency-component generation step of generating a high-frequencycomponent of the original image data or an image data obtained from thegradation conversion performed on the original image data in saidgradation conversion step; a conversion step of converting a magnitudeof an amplitude of the high-frequency component; and a control step ofcontrolling an addition of the high-frequency component converted insaid conversion step, after performance of the gradation conversion onthe original image data in said gradation conversion step, wherein saidconversion step includes converting the magnitude of the amplitude ofthe high-frequency component, based on information concerning aninclination of the gradation conversion curve.
 27. A computer readablemedium containing a program for executing an image data processingmethod, the method comprising: a smoothening step of obtaining asmoothened image data from an original image data; ahigh-frequency-component generation step of generating, as ahigh-frequency component, a difference between the smoothened image dataobtained in said smoothening step and the original image data; agradation conversion step of converting a gradation of the originalimage data by using a gradation conversion curve; a second smootheningstep of obtaining a second smoothened image data from an image dataobtained from the gradation conversion performed in said gradationconversion step; and a high-frequency-component addition step of addingthe high-frequency component to the second smoothened image data.
 28. Acomputer readable medium containing a program for executing an imagedata processing method, the method comprising: a smoothening step ofobtaining a smoothened image data from an original image data; ahigh-frequency-component generation step of generating, as ahigh-frequency component, a difference between the smoothened image dataobtained in said smoothening step and the original image data; agradation conversion step of converting a gradation of the originalimage data by using a gradation conversion curve; a conversion step ofconverting a magnitude of an amplitude of the high-frequency component,based on a value concerning an inclination of the gradation conversioncurve; and a high-frequency-component addition step of adding thehigh-frequency component whose magnitude of the amplitude has beenchanged in said conversion step to the image data whose gradation hasbeen converted.
 29. A computer readable medium containing a program forexecuting an image data processing method, the method comprising: agradation conversion step of obtaining a converted image data byconverting a gradation of an original image data; a smoothening step ofobtaining a smoothened image data by smoothing the converted image data;a high-frequency-component generation step of obtaining, as ahigh-frequency component, a difference between the smoothened image dataand the converted image data; a conversion step of converting amagnitude of an amplitude of the high-frequency component, based on avalue concerning an inclination of a gradation conversion curve; and ahigh-frequency-component addition step of adding the high-frequencycomponent whose magnitude of the amplitude has been converted in saidconversion step to the converted image data.
 30. An image dataprocessing apparatus comprising: storage means for storing informationconcerning a gradation conversion curve; high-frequency componentgeneration means for generating a high-frequency component of an imagedata, or of an image data obtained by performing gradation conversion onthe image data using the gradation conversion curve; conversion meansfor converting a magnitude of an amplitude of the high-frequencycomponent; and addition means for adding the converted high-frequencycomponent to the image data, or to the image data obtained by performingthe gradation conversion on the image data using the gradationconversion curve, wherein said conversion means converts the amplitudeof the high-frequency component on the basis of the informationconcerning the gradation conversion curve.
 31. An apparatus according toclaim 30, wherein said conversion means converts the magnitude of theamplitude of the high-frequency component on the basis of theinformation concerning an inclination of the gradation conversion curve.32. An apparatus according to claim 30, wherein said conversion meansconverts the magnitude of the amplitude of the high-frequency componenton the basis of a differential value of the gradation conversion curve.33. An apparatus according to claim 30, further comprising input meansfor inputting a variable for changing a curve form of the gradationconversion curve.
 34. An apparatus according to claim 30, wherein saidhigh-frequency component generation means generates a smoothed imagedata from the image data and subtracts the smoothed image data from theimage data, thereby to generate the high-frequency component.
 35. Anapparatus according to claim 34, wherein the smoothed image data isformed by using a morphological filter.
 36. An apparatus according toclaim 30, wherein said high-frequency component generation meansgenerates a smoothed image data from the image data after the gradationconversion, and subtracts the smoothed image data from the image dataafter the gradation conversion, thereby to generate the high-frequencycomponent.
 37. An apparatus according to claim 36, wherein the smoothedimage data is formed by using a morphological filter.
 38. An apparatusaccording to claim 30, wherein a curve form of the gradation conversioncurve is changed according to a feature amount calculated based on theimage data.
 39. An apparatus according to claim 30, further comprising:radiation generation means for irradiating radiation rays onto anobject; and a two-dimensional X-ray sensor for converting the radiationray transmitted through the object into an image data, wherein the imagedata obtained by said two-dimensional X-ray sensor serves as theoriginal image data.
 40. An image data processing method comprising: astorage step of storing information concerning a gradation conversioncurve; a high-frequency component generation step of generating ahigh-frequency component of an image data or an image data obtained byperforming gradation conversion on the image data using the gradationconversion curve; a conversion step of converting a magnitude of anamplitude of the high-frequency component; and an addition step ofadding the converted high-frequency component to the image data, or tothe image data obtained by performing the gradation conversion on theimage data using the gradation conversion curve, wherein said conversionstep includes converting the amplitude of the high-frequency componenton the basis of the information concerning the gradation conversioncurve.
 41. A computer readable medium containing a program for executingan image data processing method comprising: a storage step of storinginformation concerning a gradation conversion curve; a high-frequencycomponent generation step of generating a high-frequency component of animage data or an image data obtained by performing gradation conversionon the image data using the gradation conversion curve; a conversionstep of converting a magnitude of an amplitude of the high-frequencycomponent; and an addition step of adding the converted high-frequencycomponent to the image data, or to the image data obtained by performingthe gradation conversion on the image data using the gradationconversion curve, wherein said conversion step includes converting theamplitude of the high-frequency component on the basis of theinformation concerning the gradation conversion curve.
 42. A computerreadable medium containing a storage medium which stores a program forexecuting an image data processing method, said method comprising: astorage step of storing information concerning a gradation conversioncurve; a high-frequency component generation step of generating ahigh-frequency component of an image data, or of an image data obtainedby performing gradation conversion on the image data using the gradationconversion curve; a conversion step of converting a magnitude of anamplitude of the high-frequency component; and an addition step ofadding the converted high-frequency component to the image data, or tothe image data obtained by performing the gradation conversion on theimage data using the gradation conversion curve, wherein said conversionstep includes converting the amplitude of the high-frequency componenton the basis of the information concerning the gradation conversioncurve.
 43. An image data processing apparatus comprising: ahigh-frequency-component conversion unit adapted to convert an amplitudeof a high-frequency component of an image data, based on informationconcerning an inclination of a gradation conversion curve; and anaddition unit adapted to add the high-frequency-component, converted insaid high-frequency-component conversion unit, to an arbitrary imagedata.
 44. An apparatus according to claim 43, wherein the addition unitadds the converter high-frequency component to the image data or theimage obtained by gradation-converting the image data based on thegradation conversion curve.
 45. A apparatus according to claim 43,further comprising a gradation conversion unit adapted togradation-convert the image data based on the gradation conversioncurve, wherein said addition unit adds the converted high-frequencycomponent to the gradation-converted image.
 46. An apparatus accordingto claim 43, further comprising a high-frequency component generationunit adapted to generate a smoothed image from the image data andsubtract the smoothed image data from the image data, thereby generatingthe high-frequency component.
 47. An apparatus according to claim 43,further comprising: an radiation generation unit adapted to irradiateradiation rays onto an object; and a two-dimensional X-ray sensoradapted to convert the radiation ray transmitted through the object intoan image data, wherein the image obtained by said two-dimensional X-raysensor serves as the image.
 48. A computer readable medium containing aprogram for executing an image data processing method comprising: ahigh-frequency-component conversion step of converting an amplitude of ahigh-frequency component of an image data, based on informationconcerning an inclination of a gradation conversion curve; and anaddition step of adding the high-frequency component, converted in saidhigh-frequency-component conversion step, to an arbitrary image data.49. A computer readable medium containing a program for executing animage data processing method comprising: a high-frequency-componentconversion step of converting an amplitude of a high-frequency componentof an image data, based on information concerning an inclination of agradation conversion curve; and an addition step of adding thehigh-frequency component, converted in said high-frequency-componentconversion step, to an arbitrary image data.